/**
 * 显示模型的标签
 */

import { CSS2DObject } from '../threejs/js/renderers/CSS2DRenderer.js';

// 新建标签
function createLableObject(containerId, position, sc) {
    let labelDiv = document.querySelector(containerId);
    let pointLabel = new CSS2DObject(labelDiv);
    pointLabel.scale.set(sc, sc, sc);
    pointLabel.position.set(position.x, position.y, position.z);
    return pointLabel;
}

export { createLableObject }
